package main

import (
	"fmt"
	"os"
)

var dirName = "./save_text"

func main() {
	//textDirCheck()
	rmFile()
}


func rmFile(){
	//err := os.Remove(dirName)
	err := os.RemoveAll(dirName)
	fmt.Println(err)

}

func textDirCheck(){

	_,err := os.Stat(dirName)

	if os.IsNotExist(err) {
		if err = os.Mkdir(dirName,0777);err != nil{
			panic(err)
		}else{
			fmt.Printf("create dir success :%s\n",dirName)
		}

	}


}
